package com.atguigu.lease.web.admin.service;

import com.atguigu.lease.model.entity.RoomInfo;
import com.atguigu.lease.web.admin.dto.RoomInfoSearchDto;
import com.atguigu.lease.web.admin.dto.RoomInfoSubmitDto;
import com.atguigu.lease.web.admin.vo.RoomInfoDetailVo;
import com.atguigu.lease.web.admin.vo.RoomInfoVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 1
* @description 针对表【room_info(房间信息表)】的数据库操作Service
* @createDate 2024-08-28 11:00:26
*/
public interface RoomInfoService extends IService<RoomInfo> {

    boolean saveOrUpdateRoomInfoSubmitDto(RoomInfoSubmitDto submitDto);

    Page<RoomInfoVo> pageItem(RoomInfoSearchDto searchDto);

    boolean removeRoomInfoById(Long id);

    RoomInfoDetailVo getDetailById(Long id);

    List<RoomInfo> listRoomInfoByApartmentId(Long apartmentId);
}
